package docbookarchivemanager.utils;

/**
 *
 * @author Jakub Hrachovec
 */
public class Stylesheet {

    public enum IsFormatObject {

        TRUE,
        FALSE,
        UNKNOWN;
    }

    public enum Type {

        S("userInput", "From command line argument"),
        PI("PI", "From an 'xml-stylesheet' processing instruction"),
        DEFAULT("default", ""),
        UNKNOWN("unknown", "Unknown origin");

        private String ident;
        private String note;

        private Type(String ident, String note) {
            this.ident = ident;
            this.note = note;
        }

        public String getNote() {
            return note;
        }

        public String getIdent() {
            return ident;
        }
    }

    private String path;
    private IsFormatObject fo;
    private String name;
    private Type type;

    public Stylesheet(String path, IsFormatObject fo, String name, Type type) {
        this.path = path;
        this.fo = fo;
        this.name = name;
        this.type = type;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the path
     */
    public String getPath() {
        return path;
    }

    /**
     * @param path the path to set
     */
    public void setPath(String path) {
        this.path = path;
    }

    /**
     * @return the type
     */
    public Type getType() {
        return type;
    }

    /**
     * @param type the type to set
     */
    public void setType(Type type) {
        this.type = type;
    }

    /**
     * @return the fo
     */
    public IsFormatObject isFo() {
        return fo;
    }
}
